package com.itheima;

import java.util.LinkedList;
import java.util.Queue;

/*
* */
public class d01_linkedlist_queque {
    public static void main(String[] args) {
        //需求：创建一个队列，模拟外卖订单任务队列
        LinkedList<String> foodOrderTasks = new LinkedList<>();
        foodOrderTasks.addLast("张三");
        foodOrderTasks.addLast("李四");
        foodOrderTasks.addLast("王五");
        foodOrderTasks.addLast("赵六");

        System.out.println(foodOrderTasks.removeFirst());
        System.out.println(foodOrderTasks.removeFirst());
        System.out.println(foodOrderTasks.removeFirst());
        System.out.println(foodOrderTasks.removeFirst());



    }
}
